//
//  ShareView.m
//  MJApp
//
//  Created by John on 15/3/30.
//  Copyright (c) 2015年 wangliang. All rights reserved.
//

#import "ShareView.h"
@interface ShareView()

@property(nonatomic, strong) UIButton * cancleBtn;

@property (nonatomic, strong) UIButton * oneKeyShareBtn;

@property (nonatomic, strong) UIView * bgView;



@end

@implementation ShareView

- (void)awakeFromNib{

    [self UI];
}

- (void)UI{
    self.backgroundColor = [UIColor colorWithRed:38/255.0 green:39/255.0 blue:54/255.0 alpha:0.5];
//    self.frame = CGRectMake(0, IOS_IPHONE_WINDOW_HIGH-self.frame.size.height, IOS_IPHONE_WINDOW_WIDE, self.frame.size.height);
    
}
- (IBAction)cancleShare:(UIButton *)sender {
    
    [UIView animateWithDuration:0.2 animations:^{
        self.frame = CGRectMake(0, IOS_IPHONE_WINDOW_HIGH, self.frame.size.width, self.frame.size.height);
    } completion:^(BOOL finished) {
        [self removeFromSuperview];
    }];

    NSLog(@"dddd");
}
- (IBAction)oneKeyShare:(id)sender {
    
    [self cancleShare:nil];
}
@end
